import request from '@/utils/request'

// 获取列表
export function historicalRentalAll(params) {
    return request({
        url: '/parkingManagement/HistoricalRental/All',
        method: 'get',
        params
    })
}


export function selectByParkingSpaceInfoId(id) {
    return request({
        url: '/parkingManagement/HistoricalRental/ParkingSpaceInfo',
        method: 'get',
        params: {
            id: id
        }
    })
}

export function updateHistoryVehicle(data) {
    return request({
        url: '/parkingManagement/HistoricalRental/updateHistoryVehicle',
        method: 'post',
        data: data
    })
}